<script type="text/javascript" >
    AppComm.include.load("#url('/static/comm/js/manager/operationManager.js')","js");
</script>

<div class="layui-tab-item layui-show">

    <!--<div class="layui-card layadmin-header">-->
        <!--<div class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">-->
            <!--<a lay-href="">主页</a><span lay-separator="">/</span>-->
            <!--<a><cite>组件</cite></a><span lay-separator="">/</span>-->
            <!--<a><cite>栅格</cite></a><span lay-separator="">/</span>-->
            <!--<a><cite>等比例列表排列</cite></a>-->
        <!--</div>-->
    <!--</div>-->

<!--<div class="animated fadeIn">-->
    <!--系统管理 / 操作管理-->
    <!--<div style="text-align: left;">-->
        <!--<span class="layui-breadcrumb">-->
                <!--<a href="">系统管理</a>-->
                <!--<a><cite>操作管理</cite></a>-->
        <!--</span>-->
    <!--</div>-->
    <!--<hr>-->
    <div class="operationManager_box"></div>
</div>

<script id="operationManagerList_template" type="text/html">
    <div style="text-align: left;">
        <form class="layui-form" lay-filter="searchForm" action="">
            <div class="layui-inline">
                <!--<label class="layui-form-label">关键字</label>-->
                <div class="layui-input-inline">
                    <input name="operationName" type="text" placeholder="操作名称" class="layui-input" style="width:200px;">
                </div>
            </div>
            <div class="layui-inline">
                &nbsp;&nbsp;
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="searchBtn">查询</button>
                <!--<button class="layui-btn layui-btn-normal" id="addBtn">添加</button>-->
                #hasPermission('operationManager:add','<button class="layui-btn layui-btn-normal" id="addBtn">添加</button>')
            </div>
        </form>
    </div>

    <div style="margin-right: 10px;">
        <table id="tb_list" lay-filter="tb_list"></table>
    </div>
</script>

<script type="text/html" id="toolbar">
    #hasPermission('operationManager:edit','<a class="layui-btn layui-btn-xs" lay-event="editBtn">编辑</a>')
    #hasPermission('operationManager:delete','<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="deleteBtn">删除</a>')
</script>

<script id="operationManagerForm_template" type="text/html">
    <form class="layui-form site-block" action="" style="height: 650px;">
        <input type="hidden" id="id" value="{{id}}" >
        <div class="layui-tab-item layui-show" style="width:652px;margin: 0 auto;">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">操作关键字</label>
                    <!--<div class="layui-input-inline">-->
                    <input type="text" id="operationKey" name="operationKey" lay-verify="operationKey" placeholder="请输入操作关键字" autocomplete="off" class="layui-input" value="{{operationKey}}" style="width: 500px;">
                    <!--</div>-->
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">操作名称</label>
                    <!--<div class="layui-input-inline">-->
                    <input type="text" id="operationName" name="operationName" lay-verify="required" placeholder="请输入操作名称" autocomplete="off" class="layui-input" value="{{operationName}}" style="width: 500px;">
                    <!--</div>-->
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">排序</label>
                    <!--<div class="layui-input-inline">-->
                    <input type="text" id="orderId" name="orderId" lay-verify="number" placeholder="请输入序号" autocomplete="off" class="layui-input" value="{{orderId}}" style="width: 500px;">
                    <!--</div>-->
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">说明</label>
                    <!--<div class="layui-input-inline">-->
                    <textarea placeholder="请输入内容" id="comment" name="comment" class="layui-textarea" style="width: 500px;">{{comment}}</textarea>
                    <!--</div>-->
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <label style="color: red">操作关键字：模块名:业务名，如user:add</label>
                </div>
            </div>
            <br>
            <div class="layui-form-item">
                <div class="layui-inline" style="margin-left: 225px;width:182px;">
                    #hasPermission('operationManager:save','<a id="saveBtn" class="layui-btn layui-btn-normal" lay-event="saveBtn">提交</a>')
                    <!--<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="saveBtn" id="saveBtn">提交</button>-->
                    <button class="layui-btn layui-btn-normal" id="cancelBtn">取消</button>
                </div>
            </div>
        </div>
    </form>
</script>

